package com.example.annotationdemo.controller;

import com.example.annotationdemo.service.BusinessService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kw
 * @program annotation-demo
 * @description
 * @create 2024 - 05 - 19 16:29
 **/
@RestController
@RequestMapping("business")
public class BusinessController {


    @Resource
    private BusinessService businessService;

    @GetMapping
//    @BusinessAnnotation(businessType = BusinessEnum.DEVICE_INTERCEPTOR)
    public void get() {
        businessService.submit();
    }
}
